﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControls_ucWebUploader : System.Web.UI.UserControl
{
    /// <summary>
    /// 分片大小（默认1*1024*1024）1M
    /// </summary>
    private int _chunkSize = 1 * 1024 * 1024;
    public int ChunkSize
    {
        get { return _chunkSize; }
        set { _chunkSize = value; }
    }
    /// <summary>
    /// 重试次数（默认1000次）
    /// </summary>
    private int _chunkRetry = 1000;
    public int ChunkRetry
    {
        get { return _chunkRetry; }
        set { _chunkRetry = value; }
    }
    /// <summary>
    /// 文件个数限制（默认10个）
    /// </summary>
    private int _fileNumLimit = 10;
    public int FileNumLimit
    {
        get { return _fileNumLimit; }
        set { _fileNumLimit = value; }
    }
    /// <summary>
    /// 图片上传前是否进行压缩（默认false）
    /// </summary>
    public bool Compress { get; set; }
    /// <summary>
    /// 文件总大小限制（默认2*1024*1024*1024 k=2G）
    /// </summary>
    private Int64 _fileSizeLimit = 2147483648;
    public Int64 FileSizeLimit
    {
        get { return _fileSizeLimit; }
        set { _fileSizeLimit = value; }
    }
    /// <summary>
    /// 单个文件最大限制（默认1024*1024*1024 k=1G）
    /// </summary>
    private Int64 _fileSingleSizeLimit = 1073741824;
    public Int64 FileSingleSizeLimit
    {
        get { return _fileSingleSizeLimit; }
        set { _fileSingleSizeLimit = value; }
    }
    /// <summary>
    /// 选择文件后自动上传（默认true）
    /// </summary>
    private bool _auto = true;
    public bool Auto
    {
        get { return _auto; }
        set { _auto = value; }
    }
    /// <summary>
    /// 上传目录(默认为根目录下的uploadFile)
    /// </summary>
    private string _uploadDirectory = "UploadFile";
    public string UploadDirectory
    {
        get { return _uploadDirectory; }
        set { _uploadDirectory = value; }
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }
}